added hooks corresponding to annex.*-command
authorJoey Hess <joeyh@joeyh.name>
Fri, 10 Jan 2025 18:50:49 +0000 (14:50 -0400)
committerJoey Hess <joeyh@joeyh.name>
Fri, 10 Jan 2025 18:54:42 +0000 (14:54 -0400)
commita73fa774176d036c029e4631cd2a238d00a77576
tree04a059a46c75f1c4656622ffd4021b5969da3753
parent5df1b2b36e8ff2f233722e0f83c3aa892566702c
added hooks corresponding to annex.*-command

* Added freezecontent-annex and thawcontent-annex hooks that
  correspond to the git configs annex.freezecontent and
  annex.thawcontent.
* Added secure-erase-annex hook that corresponds to the git config
  annex.secure-erase-command.
* Added commitmessage-annex hook that corresponds to the git config
  annex.commitmessage-command.
* Added http-headers-annex hook that corresponds to the git config
  annex.http-headers-command.
  that correspond to the post-update-annex and pre-commit-annex hooks.

The use case for these is eg, setting up a git repository that is run in a
container, where the easiest way to provide a script is by putting it in
.git/hooks/, rather than copying it into the container in a way that puts
it in PATH.

This is all the ones that make sense to add for annex.*-config git configs.
annex.youtube-dl-command is not a hook, it's telling git-annex what command
to run. So is annex.shared-sop-command. So omitted those.

May later also want to add hooks corresponding to
`remote.<name>.annex-cost-command` etc.

Sponsored-by: the NIH-funded NICEMAN (ReproNim TR&D3) project
Annex/Branch.hs
Annex/Content/LowLevel.hs
Annex/Hook.hs
Annex/Perms.hs
Annex/Url.hs
CHANGELOG
Git/Hook.hs
doc/git-annex.mdwn
doc/todo/specify_freeze__47__thaw_scripts_relative_to_topdir.mdwn
doc/todo/specify_freeze__47__thaw_scripts_relative_to_topdir/comment_6_6bda77480362b38d6984d38430a1dc17._comment
doc/todo/specify_freeze__47__thaw_scripts_relative_to_topdir/comment_7_8fd25d5d2b802c6ff6ee0a3802d6f1cb._comment [new file with mode: 0644]